Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sim Alive Robots Publish #2215

Closed
wants to merge 6 commits into from
Closed

Conversation

oddlyspookycherry
Copy link
Contributor

Description

Publish robots 0-6 as alive in sim_radio.
Declare strategy/alive_robots as a global topic name for alive robots and make all radios use it.

Steps to Test

  1. Run sim.
  2. ros2 topic echo strategy/alive_robots

@@ -39,7 +39,7 @@ Radio::Radio()
}

alive_robots_pub_ =
create_publisher<rj_msgs::msg::AliveRobots>("/alive_robots", rclcpp::QoS(1));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason base Radio class (used by network_radio) and sim_radio used different topic names for alive robots. I went with the one used by sim.

Copy link
Contributor

@sid-parikh sid-parikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we actually use the other "/alive_robots" topic? Can you also update agent_action_client to subscribe to the other one? We want everything to be the same. No need for the "strategy/" one. Thank you!

@sid-parikh
Copy link
Contributor

sid-parikh commented Mar 6, 2024

Code was merged into #2212. @oddlyspookycherry , feel free to leave a review there to ensure your changes were transferred the way you expect.

@sid-parikh sid-parikh closed this Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants